package model;

import java.io.Serializable;

public class User implements Serializable {

	private static final long serialVersionUID = 0x2F3AC7E4L;
	private Account account;
	private int id;
	private String name;
	private String email;
	private String phone;

	public User(Account account, int id, String name, String email, String phone) {
		this.account = account;
		this.id = id;
		this.name = name;
		this.email = email;
		this.phone = phone;
	}

	public User() {
	}

	public Account getAccount() {
		return account;
	}

	public void setAccount(Account account) {
		this.account = account;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Override
	public String toString() {
		return "User [\naccount=" + account.getUsername() + ",\nname=" + name
				+ ",\nemail=" + email + ",\nphone=" + phone + "]";
	}

}
